// JavaScript Document


$(document).ready(function(){
	$(".comment").hide();
	$(".add_comment").hide();

	$("#comments h2").click(function(){
		$(this).toggleClass("active").next().slideToggle("slow");
		return false; //Prevent the browser jump to the link anchor
	});
	
	$("#add_comments p").click(function(){
		$(".add_comment").show();
		return false; //Prevent the browser jump to the link anchor
	});

});


function affiche_cache(div) {
	if (document.getElementById('div').style.display == "none") {
		document.getElementById('div').style.visibility = "block";
	}
	else
		document.getElementById('div').style.visibility = "block";
}